import { JSEncrypt } from 'jsencrypt'
const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIBxGsKXg5bZrE257fSD9P0bdXJsvLTwkwPNsv9E5g0m6kHpeUoYdzxo8zBekeyB5ZmAlsqOIWfBxhZ35BY4F4sCAwEAAQ=='
export function encryption (str:string) {
  const encrypt = new JSEncrypt()
  encrypt.setPublicKey(publicKey)
  const encrypted = encrypt.encrypt(str)
  return encrypted
}